
<script>
	$(document).ready(function(){
		
		$('.subpage').hide();


		$('a').click(function(event){
				 
		    
		   });
	})


</script>

<?= $sOutput = show($this->aDisplayedContent['navigation']);?> 

<?php function show($aArray){?>

<?php foreach($aArray as $aElement){?>
<a href="<?=$aElement['link']?>"><?=$aElement['name']?> </a>
<?php if(!empty($aElement['subPages'])){?>
<div class="subpage" name="<?=$aElement['name']?>"id="<?=$aElement['name']?>">
<?php show($aElement['subPages']);?>
</div>
<?php }?>




<?php }?>

<?php  }?>
